package com.xxin.core.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.License;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author lvjx
 * @description Swagger配置
 * @date 2024/9/6 16:11
 */
@Configuration
public class SwaggerConfig {
	
	@Bean("customOpenAPI")
	public OpenAPI customOpenApi() {
		Contact contact = new Contact();
		contact.email("xxin778@163.com");
		contact.setName("Issie");
		return new OpenAPI()
				       .info(new Info()
						             .title("宠爱有家")
						             .version("1.0")
						             .description("宠爱有家后台接口文档")
						             .contact(contact));
	}
}
